package com.dayaokeji.rhythmschoolstudent.client.home.data.bean;

import com.dayaokeji.rhythmschoolstudent.client.common.base.App;

/**
 * Created by Gorden on 2017/9/26.
 */

public class ComponentBean {

    private int iconResId = -1;
    private String nameStr;
    private Integer textColorRes = null;
    private boolean active = true;
    private String title;
    private String desc;

    public ComponentBean(int iconResId, int nameResId,Integer textColorRes,boolean active) {
        this.iconResId = iconResId;
        this.nameStr = App.getAppContext().getString(nameResId);
        this.textColorRes = textColorRes;
        this.active = active;
    }


    public ComponentBean(int iconResId, int nameResId) {
        this.iconResId = iconResId;
        this.nameStr = App.getAppContext().getString(nameResId);
    }

    public ComponentBean() {
    }

    public int getIconResId() {
        return iconResId;
    }

    public void setIconResId(int iconResId) {
        this.iconResId = iconResId;
    }

    public String getNameStr() {
        return nameStr;
    }

    public void setNameStr(String nameStr) {
        this.nameStr = nameStr;
    }

    public Integer getTextColorRes() {
        return textColorRes;
    }

    public void setTextColorRes(Integer textColorRes) {
        this.textColorRes = textColorRes;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
